{extend name="common/head"/}
{block name="body"}
<div class="container-fluid p-t-15">

	<div class="row">

		<div class="col-lg-12">
			<div class="card">
				<header class="card-header">
					<div class="card-title">备份列表</div>
				</header>
				<div class="card-body">
					<table class="table">
						<thead class="thead-dark">
						<tr>
							<th>文件名称</th>
							<th>分卷</th>
							<th>文件大小</th>
							<th>文件格式</th>
							<th>分隔符</th>
							<th>备份时间</th>
							<th>操作</th>
						</tr>
						</thead>
						<tbody>
						{empty name="list"}
						<tr class="no-records-found"><td colspan="9">暂无备份</td></tr>
						{/empty}
						{volist name="list" id="vo" key="k"}
						{volist name="vo.data" id="voo"}
						<tr>
							<th scope="row">{:date("Ymd",$voo.time)}{$voo.compress}{:date("His",$voo.time)}{$voo.compress}{$voo.part}.sql</th>
							<td>{$voo.part}</td>
							<td>{:format_bytes($voo.size)}</td>
							<td>.sql</td>
							<td>{$voo.compress}</td>
							<td>{$vo.time}</td>
							<td>
								<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="import">数据还原</a>
								<a class="layui-btn layui-btn-xs" href='/admin/database/downfile?name={:date("Ymd",$voo.time)}{$voo.compress}{:date("His",$voo.time)}{$voo.compress}{$voo.part}.sql'>备份下载</a><a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">备份删除</a>
							</td>
						</tr>
						{/volist}
						{/volist}
						</tbody>
					</table>
				</div>
			</div>
		</div>

	</div>

</div>
{/block}
{block name="script"}
{include file="common/footer" base="base" /}
<!--以下是tree-grid的使用示例-->
<link href="{__ADMIN__}/js/jquery-treegrid/jquery.treegrid.min.css" rel="stylesheet">
<script src="{__ADMIN__}/js/jquery-treegrid/jquery.treegrid.min.js" type="text/javascript"></script>
<script src="{__ADMIN__}/js/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.min.js"
		type="text/javascript"></script>
<script type="text/javascript">

</script>
{/block}
</body>
</html>